<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/mytag.jspf"%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title>历史业绩</title>
</head>
<body>
	<h2 class="app-title">历史业绩</h2>
	<div class="am-g">
		<div class="am-u-sm-12">
			<table class="am-table am-table-striped am-text-sm am-table-centered">
				<thead class="am-text-blue">
					<tr><th>月份</th><th>业绩（元）</th><th>提成（元）</th></tr>
				</thead>
				<tbody>
					<c:set var="sumBase" value="0"></c:set>
					<c:set var="sumComm" value="0"></c:set>
					<c:forEach items="${list}" var="s">
						<tr><td>${s.month}</td><td>${s.baseAmount}</td><td>${s.commisionAmount}</td></tr>
						 <c:set var="sumBase" value="${sumBase+s.baseAmount}"></c:set>
						 <c:set var="sumComm" value="${sumComm+s.commisionAmount}"></c:set>
					</c:forEach>
				</tbody>
				<tfoot>
					<tr><td>合计</td><td>${sumBase}</td><td>${sumComm}</td></tr>
				</tfoot>
			</table>
		</div>
	</div>
</body>
</html>
